"use strict";
import { util } from "utils";
import { getCardData } from "./tool";
exports.main = async (event, context) => {
    //event为客户端上传的参数
    console.log("even: ", event);
    // 校验参数
    let signErrResult = util.checkSign(event);
    if (!util.nilValue(signErrResult)) {
        return signErrResult;
    }
    // 获取数据
    let [flow_err, flow_data] = await getCardData();
    return util.resPack(flow_data, flow_err);
};
